package com.meilai.project.mapper.business.workbench;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meilai.project.entity.business.workbench.SaleWeekTarget;
import com.meilai.project.vo.business.workbench.BaseSaleWeekTargetVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 销售每周目标表 Mapper 接口
 * </p>
 *
 * @author haiYangXu
 * @since 2022-08-16
 */
@Mapper
public interface SaleWeekTargetMapper extends BaseMapper<SaleWeekTarget> {

    /**
     * 获取个人目标数据
     *
     * @param week_ids
     * @return
     */
    List<BaseSaleWeekTargetVO> querySalePersonalTargetWeekListByWeekIds(@Param("ids") List<Long> week_ids);

    List<BaseSaleWeekTargetVO> querySaleCompanyTargetWeekListByWeekIds(@Param("ids") List<Long> week_ids);
}
